{php include pubTemplate("header")}

<div class="container">


    <nav aria-label="breadcrumb">
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
            <li class="breadcrumb-item"><a href="{tsUrl('article')}">{$TS_APP['appname']}</a></li>
            <li class="breadcrumb-item"><a href="{tsUrl('article','tags')}">标签</a></li>
            <li class="breadcrumb-item active" aria-current="page">{$strTag[tagname]}</li>
        </ol>
    </nav>

<div class="row">


<div class="col-md-8">







            {loop $arrArticle $key $item}


            <div class="card">
                <div class="card-body">


                    {if $item['photo']}
                    <div class="row">

                        <div class="col-md-4">
                            <a href="{tsUrl('article','show',array('id'=>$item['articleid']))}">
                                <img class="mw-100" src="{php echo tsXimg($item['photo'],'article',320,180,$item['path'],'1')}" />
                            </a>
                        </div>
                        <div class="col-md-8">

                            <div class="h5 fw400"><a href="{tsUrl('article','show',array('id'=>$item['articleid']))}">{$item['title']}</a></div>

                            <div class="fs12 text-black-50"><a class="text-black-50" href="{tsUrl('user','space',array('id'=>$item[user][userid]))}">{$item['user']['username']}</a> 发表于 {$item['addtime']}</div>

                            <div class="text-black-50 mt-1">{if $item['gaiyao']}{tsTitle($item['gaiyao'])}{else}暂无概要{/if} (<a href="{tsUrl('article','show',array('id'=>$item['articleid']))}">查看全文</a>)</div>





                            <div class="of c9 mt-3 fs12">

                                <div class="float-left">
                                    分类：<a href="{tsUrl('article','cate',array('id'=>$item['cate']['cateid']))}">{$item['cate']['catename']}</a>
                                </div>
                                <div class="float-right">

                                    <i class="bi bi-eye"></i> {$item['count_view']}
                                    <i class="bi bi-chat-text ml-3"></i> {$item['count_comment']}


                                </div>

                            </div>







                        </div>

                    </div>


                    {else}

                    <div class="h5 fw400"><a href="{tsUrl('article','show',array('id'=>$item['articleid']))}">{$item[title]}</a></div>

                    <div class="fs12 text-black-50"><a class="text-black-50" href="{tsUrl('user','space',array('id'=>$item['user']['userid']))}">{$item['user']['username']}</a> 发表于 {$item['addtime']}</div>

                    <div class="text-black-50 mt-1">{if $item['gaiyao']}{$item['gaiyao']}{else}暂无概要{/if} (<a href="{tsUrl('article','show',array('id'=>$item['articleid']))}">查看全文</a>)</div>




                    <div class="of c9 mt-3 fs12">

                        <div class="float-left">
                            分类：<a href="{tsUrl('article','cate',array('id'=>$item['cate']['cateid']))}">{$item['cate']['catename']}</a>
                        </div>
                        <div class="float-right">

                            <i class="bi bi-eye"></i> {$item['count_view']}
                            <i class="bi bi-chat-text ml-3"></i> {$item['count_comment']}
                        </div>

                    </div>



                    {/if}

                </div>
            </div>









            {/loop}






<div class="page">{$pageUrl}</div>

</div>


<div class="col-md-4">

    <div class="card">
        <div class="card-header">热门标签</div>
        <div class="card-body">
<div>
{loop $arrTag $key $item}
<a class="badge badge-secondary mr-2 mb-2 fw300" href="{tsUrl('article','tag',array('id'=>urlencode($item['tagname'])))}">{$item['tagname']}</a>
{/loop}

</div>
</div>
</div>


</div>






</div>
</div>

{php include pubTemplate("footer")}